package org.ahuanlien.crm.mapper;

import org.ahuanlien.crm.domain.BillRecord;
import org.ahuanlien.crm.domain.TemOrder;
import org.ahuanlien.crm.query.BillRecordQueryObject;
import org.ahuanlien.crm.query.SalesChartQueryObject;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface BillRecordMapper {
    List<BillRecord> query4List(BillRecordQueryObject qo);
    int query4Count(BillRecordQueryObject qo);
    BillRecord getBySn(String sn);
    void insert(BillRecord record);
    BillRecord selectByPrimaryKey(Long id);
    void updateByPrimaryKey(BillRecord record);
    void deleteByPrimaryKey(Long id);
    List<Map<String,BigDecimal>> queryByGroupType(SalesChartQueryObject qo);

    void update(BillRecord billRecord);
}